{* category navigation tree *}
<ul>
{section name=i loop=$categories_tree}  {if $categories_tree[i].categoryID != 1}
<li {if $categoryID == $categories_tree[i].categoryID}class="current"{/if}>
{section name=j loop=$categories_tree max=$categories_tree[i].level-1}<span class="tab">&nbsp;</span>{/section}
{if $categories_tree[i].slug}
{assign var=_category_url value="?categoryID=`$categories_tree[i].categoryID`&category_slug=`$categories_tree[i].slug`"|set_query_html}
{else}
{assign var=_category_url value="?categoryID=`$categories_tree[i].categoryID`"|set_query_html}
{/if}
<a href='{$_category_url}'>{$categories_tree[i].name|escape:'html'|default:"(no name)"}</a>
</li>
{/if}  {/section}
</ul>